i have 2 carts for this, only one is runnable the other has an error
so, i started with this code;
m={pl=4,ll=4,sl=1,px={30,30,50,50},py={30,50,30,50}} s=1 function _update() cls() repeat spr(1,m.px[s]-2,m.py[s]-2) s+=1 until s==m.pl+1 print(s,1,122) end |
it should make 4 sprites at each point with a -2 condition to make the sprite not offset.
but instead,
ok, the first thing i notice...
feild "?"
huh?
so, apparently this is pico-8ʻs way of saying "haha, you stupid, your code suck"(no offence, ZEP, im sorry if you find that, or anything else offensive) EVEN THOUGH IF YOU SEARCH THE CODE FOR THE "?", YOU GET 0 [redacted] RESULTS!
sorry, just needed to get that out of my system.
so, i started to change the code, eventualy i found out, that by uncorrecting the sprite, i can make it work, almost!
no, that would be too easy, if you play that cart, an extra 5th point appears after a little bit, IN A CART THAT PRINTS WITH NO IF CONDITIONS!!!
how do i fix this stupid, bug? or is it not the code? mabye its zeps code?
p.s: i tried to do light editing from my original draft, so i still express my anger, so, again, if you find any of this rude or offensive, im sorry.
for some reason it wont draw the last line in the loop, its just not!
map1={wallslength=4,wallsx={30,30,50,50},wallsy={30,50,50,30}} map2={} map3={} s=0 sf=1 function _update() cls() s=1 sf=2 repeat if sf > map1.wallslength then line(map1.wallsx[s],map1.wallsy[s],map1.wallsx[1],map1.wallsy[1]) else line(map1.wallsx[s],map1.wallsy[s],map1.wallsx[s+1],map1.wallsy[s+1]) end s+=1 sf+=1 until s==map1.wallslength end |
you can use EDU to edit the image generated, its so simple, once you get what you like, just render the image in your pico-8 cart, i have listed a code i made for a cool image below the main cart.
x=3--changable variables y=-3200 fc=1 w=128--fixed/unchangable variables h=128 l=0 cls() function updatelayer() line(0,l,128,l,fc+7) --uses fc to fill the backround line(y+33,l,0,l,x-3) --outlines the grass line(y,l,0,l,x) --makes a grassland area x=x--you can change these updates, but the equations have to start with the variable being updated (x(equation)) y=y+32 fc=fc*1.01 l+=1--update the layer being drawn on, you cant change this equation end repeat updatelayer() until l==128 |
im so close to finishing my biggest project yet, but another bug comes up!
anyboy know why the player wont jump?
function _update60() cls() if(btnp(⬆️))then yv=5 end if(btn(➡️))then xv+=s end if(btn(⬅️))then xv-=s end if(xv>mxv)then xv=mxv end if(xv<0-mxv)then xv=0-mxv end yv+=g y+=yv x+=xv if(xv>0)then xv-=f if(xv<0)then xv=0 end end if(xv<0)then xv+=f if(xv>0)then xv=0 end end if(y>120)then y=120 end spr(skin,x,y) end |
thats right, i am making a pico 8 version of sebs drag and drop coding visual
you have to get used to the controls or you might get something like this;
i am exited for this, and i want it to succeed, so ill post some demos below
i tried using _draw instead of a repeat, it made it lag
i hacked the game so you can buy clickers any time
it puts 0.5999 when you try to get 0.6
oh yeah, im cool.
no matter what you tell me, i am using a cart to play songs
hello, im getting an error on pico 8 about <EOF> needed near 'end'
i tried everything, please help!